# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-dtfabric
_pkgname=dtfabric
pkgver=20230520
pkgrel=4
pkgdesc='Tooling for data type and structure management.'
arch=('any')
url='https://pypi.org/project/dtfabric/#files'
license=('Apache')
depends=('python' 'python-pyaml')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a95d285aa5a5fde7aeb37e1595beb809fe326025ea067bc6f066df8dbc2b97c6b78924a47f420ea31f91db771ad396a5908a8b09f98b17cef659be0343c850da')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

